package com.huirui.server;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.huirui.server.mapper")
@EnableTransactionManagement // 开启注解事务管理
@EnableScheduling  // 开启定时任务支持
public class MainApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(MainApplication.class);
        app.setAllowCircularReferences(true); // 允许循环依赖
        app.run(args);
    }

}
